package com.lyl.mp.mybatisplus.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author lvxiaobu
 * @since 2023-02-22
 */
@Data
@TableName("student")
@ApiModel(value = "Student对象", description = "")
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id,uuid")
//    @TableId(type = IdType.ASSIGN_UUID)
//    @TableId(type = IdType.ASSIGN_ID)  可在配置文件中全局配置
    private String id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("学校")
    private String school;

    @ApiModelProperty("年级")
    private Integer grade;

    @ApiModelProperty("家庭住址")
    private String address;

    @ApiModelProperty("电话")
    @OrderBy(asc = false,sort = 2)  // 排序，优先级低于wapper，sort 数字越小越靠前
    private String phone;

    //@TableLogic(value="1",delval = "0")// value 未删除标识; delval  删除标识
    private Integer deleteFlag;

    @OrderBy(asc = false,sort = 1)  // 排序，优先级低于wapper，sort 数字越小越靠前
    private Double chengji;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public Integer getGrade() {
        return grade;
    }

    public void setGrade(Integer grade) {
        this.grade = grade;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public Double getChengji() {
        return chengji;
    }

    public void setChengji(Double chengji) {
        this.chengji = chengji;
    }
}
